import { DataSourcePlugin } from '@grafana/data';
import { BasicDataSource } from './datasource';

import { ConfigEditor } from './components';
import { QueryEditor } from './QueryEditor'

import { BasicDataSourceOptions } from './types';
import { SQLQuery } from './components/QueryEditor/types';

export const plugin = new DataSourcePlugin<BasicDataSource, SQLQuery, BasicDataSourceOptions>(BasicDataSource)
  .setConfigEditor(ConfigEditor)
  .setQueryEditor(QueryEditor);
